<?php
/*
 * @var $this TagController
 */

$this->breadcrumbs = array ('Tag' => array ('/tag/tag' ), 'Tag' );
?>

<h1>教育家类别</h1>

<div class="row">

	<div class="span3">
		<?php
		
		$items = array ();
		
		foreach ( $tags as $tag ) {
			$items [] = array ('label' => $tag->name, 'url' => $this->createUrl ( '/tag/' . $tag->name ) );
		}
		
		$this->widget ( 'bootstrap.widgets.TbMenu', array ('type' => 'tabs', 		// '',
		                                                                     // 'tabs',
		                                                                     // 'pills'
		                                                                     // (or
		                                                                     // 'list')
		'stacked' => true, 		// whether this is a stacked menu
		'items' => $items ) );
		?>
	</div>
	
	<div class="span6" style="margin-bottom:20px;">
		<?php foreach($sub_tags as $tag):?>
			<a class="btn" href="<?php echo $this -> createUrl('/tag/'.$tag ->parent-> name.'/'.$tag->name);?>"><?php echo $tag->name;?></a>
		<?php endforeach;?>
	</div>

	<div class="span6">
		<ul class="thumbnails">
			<?php foreach($dataProvider->data as $data):?>
			<?php echo $this -> renderPartial('//common/educator',array('model'=>$data))?>
			<?php endforeach;?>
		</ul>
	</div>

</div>



